//
//  GreatGodModel.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/7/10.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "GreatGodModel.h"

@implementation GreatGodModel



+(NSDictionary *)JSONKeyPathsByPropertyKey
{
    /**自定义         网络**/
    return @{@"greatawardScore"      : @"awardScore",
             @"greatearnRate"        : @"earnRate",
             @"greathitRate"         : @"hitRate",
             @"greatimgPath"         : @"imgUrl",
             @"greatredCount"        : @"redCount",
             @"greatscore"           : @"score",
             @"greatuserId"          : @"userId",
             @"greatuserSign"        : @"userSign",
             @"greatusername"        : @"username",
             @"greatlevelFlg"        : @"level"
             };
}

+ (NSValueTransformer *)JSONTransformerForKey:(NSString *)key
{
    return [MTLValueTransformer reversibleTransformerWithBlock:^id(id value) {
        return DEF_OBJECT_TO_STIRNG(value);
    }];
}


@end

@implementation SearchGodModel



+(NSDictionary *)JSONKeyPathsByPropertyKey
{
    /**自定义         网络**/
    return @{@"searchUserId"        : @"userId",
             @"searchUserImg"       : @"imgUrl",
             @"searchUserName"      : @"username",
             };
}

+ (NSValueTransformer *)JSONTransformerForKey:(NSString *)key
{
    return [MTLValueTransformer reversibleTransformerWithBlock:^id(id value) {
        return DEF_OBJECT_TO_STIRNG(value);
    }];
}



@end
